#!/bin/bash

path=../data/jul2018
exe=./ana
B=1.2006

# B: 1.2006, 5mmC, total: 135w
# 37w
$exe $path/20180710_0714.dat $path/20180710.004 -u0 -m$B

# 63w
$exe $path/20180710_1014.dat $path/20180710.005 -u0 -m$B

# 17w
$exe $path/20180711_0404.dat $path/20180711.002 -u0 -m$B

#18w
$exe $path/20180711_0707.dat $path/20180711.003 -u0 -m$B

hadd -f C14TA.root 20180710_0714.dat_0.root 20180710_1014.dat_0.root \
  20180711_0404.dat_0.root 20180711_0707.dat_0.root

# empty TA, total: 105w
# 50w
$exe $path/20180710_2157.dat $path/20180710.010 -u0 -m$B

# 55w
$exe $path/20180711_0039.dat $path/20180711.001 -u0 -m$B

hadd -f C14NOTA.root 20180710_2157.dat_0.root 20180711_0039.dat_0.root
